package com.marcnuri.android.widget;

import mydebug.MyDebug;

public class ViewHolder<T> {

	public T data;

	@Override
	public int hashCode() {
		MyDebug.beginMethod("hashCode:int ViewHolder<T>");
		final int prime = 31;
		int result = 1;
		result = prime * result + ((data == null) ? 0 : data.hashCode());
		{
			int giatritrave = result;
			MyDebug.endMethod();
			return giatritrave;
		}
	}

	@SuppressWarnings("unchecked")
	@Override
	public boolean equals(Object obj) {
		MyDebug.beginMethod("@SuppressWarnings: ViewHolder<T>");
		if (this == obj) {
			boolean giatritrave = true;
			MyDebug.endMethod();
			return giatritrave;
		}
		if (obj == null) {
			boolean giatritrave = false;
			MyDebug.endMethod();
			return giatritrave;
		}
		if (getClass() != obj.getClass()) {
			boolean giatritrave = false;
			MyDebug.endMethod();
			return giatritrave;
		}
		ViewHolder other = (ViewHolder) obj;
		if (data == null) {
			if (other.data != null) {
				boolean giatritrave = false;
				MyDebug.endMethod();
				return giatritrave;
			}
		} else if (!data.equals(other.data)) {
			boolean giatritrave = false;
			MyDebug.endMethod();
			return giatritrave;
		}
		{
			boolean giatritrave = true;
			MyDebug.endMethod();
			return giatritrave;
		}
	}

}
